local shader = love.graphics.newShader(nil, [[
    float sdSegment( in vec2 p, in vec2 a, in vec2 b )
    {
        vec2 pa = p-a, ba = b-a;
        float h = clamp( dot(pa,ba)/dot(ba,ba), 0.0, 1.0 );
        return length( pa - ba*h );
    }
    vec4 effect( vec4 color, Image tex, vec2 uv, vec2 pos )
    {
        float d1 = sdSegment(pos / 12.0, vec2(0.02, 0.03), vec2(0.5, 0.7));
        float d2 = sdSegment(pos / 12.0, vec2(0.98, 0.03), vec2(0.5, 0.7));
        
        float c = smoothstep(0.1, 0.01, min(d1, d2));

        return vec4(0.0, 0.0, 0.0, c);
    }
]])

ImageMaker:make("arrow", 12, 12, shader)